package com.isseiaoki.simplecropview.util;

@SuppressWarnings("unused") public class Logger {
  private static final String TAG = "SimpleCropView";
  public static boolean enabled = false;

  public static void setEnabled(boolean enabled) {
    Logger.enabled = enabled;
  }

  public static void e(String msg) {
    if (!enabled) return;
    LogUtil.error(TAG, msg);
  }

  public static void e(String msg, Throwable e) {
    if (!enabled) return;
    LogUtil.error(TAG, msg+","+e);
  }

  public static void i(String msg) {
    if (!enabled) return;
    LogUtil.info(TAG, msg);
  }

  public static void i(String msg, Throwable e) {
    if (!enabled) return;
    LogUtil.info(TAG, msg+","+e);
  }
}
